home *** CD-ROM | disk | FTP | other *** search
- ***************************************************************************
- * PROGRAM: Skip.wfm
- *
- * WRITTEN BY: Borland Samples Group
- *
- * DATE: 1/94
- *
- * UPDATED: 5/95
- *
- * REVISION: $Revision: 1.14 $
- *
- * VERSION: Visual dBASE
- *
- * DESCRIPTION: This form allows skipping records in the current view table.
- * It contains a spinbox for that purpose, and 2 buttons that
- * will let you submit the form or cancel the skip.
- *
- * PARAMETERS: None
- *
- * CALLS: Music.qbe (view of tables, in case none are open)
- * Music.cc (for custom pushbuttons)
- *
- * USAGE: DO Skip.wfm
- *
- *******************************************************************************
- create session && If form run on its own, it should close all its tables
- set talk off
- set ldcheck off
-
- ** END HEADER -- do not remove this line*
- * Generated on 06/19/94
- *
- parameter bModal
- local f
- f = new SKIPFORM()
- if (bModal)
- f.mdi = .F. && ensure not MDI
- f.ReadModal()
- else
- f.Open()
- endif
- CLASS SKIPFORM OF FORM
- Set Procedure to Music.cc Additive
- this.MousePointer = 1
- this.ColorNormal = "B/W"
- this.Width = 45.05
- this.Top = 5.41
- this.Text = "Skip Records"
- this.Left = 18.87
- this.OnSelection = CLASS::ONSELECTION
- this.Height = 5.30
- this.Minimize = .F.
- this.Maximize = .F.
- this.OnOpen = CLASS::ONOPEN
- this.HelpFile = ""
- this.HelpId = ""
- this.ColorNormal = "W"
-
- DEFINE RECTANGLE BORDER OF THIS;
- PROPERTY;
- ColorNormal "W/R",;
- Width 29.07,;
- Top 0.47,;
- Text "",;
- Left 13.43,;
- Height 2.24,;
- Border .T.,;
- BorderStyle 1
-
- DEFINE EMPHASIZEDTEXT SKIPTEXT OF THIS;
- PROPERTY;
- FontBold .F.,;
- Alignment 5,;
- ColorNormal "W+/R",;
- Width 7.99,;
- Top 1.01,;
- Text "Skip",;
- Left 14.79,;
- Height 1.26,;
- Border .F.,;
- FontSize 10.00
-
- DEFINE SPINBOX NUMTOSKIP OF THIS;
- PROPERTY;
- ColorNormal "R/W",;
- Width 14.79,;
- Top 1.01,;
- Left 24.99,;
- Value 0,;
- Height 1.01,;
- Border .T.,;
- ColorHighLight "R/W*",;
- Rangemin -200.00,;
- Function "C",;
- Picture "99999999999999",;
- Rangemax 200.00
-
- DEFINE IMAGE LOGOIMAGE OF THIS;
- PROPERTY;
- Width 10.71,;
- DataSource "FILENAME SMLMUSIC.BMP",;
- Top 0.50,;
- Left 1.19,;
- Height 4.55
-
- DEFINE OKMBUTTON SKIPOKBUTTON OF THIS;
- PROPERTY;
- Width 14.11,;
- Top 3.47,;
- Left 13.43,;
- Height 1.50
-
- DEFINE CANCELMBUTTON SKIPCANCELBUTTON OF THIS;
- PROPERTY;
- Group .F.,;
- Default .T.,;
- Width 14.11,;
- Top 3.47,;
- ID 0,;
- Left 28.22,;
- Height 1.50
-
- ****************************************************************************
- PROCEDURE OnOpen
- ****************************************************************************
- if empty(dbf())
- set view to music.qbe
- endif
- form.skipCancelButton.SetFocus()
-
- ****************************************************************************
- PROCEDURE OnSelection(controlId)
- ****************************************************************************
-
- if controlId <> 0 && Cancel wasn't selected
- do case
- case eof()
- go bottom
- case bof()
- go top
- otherwise
- skip form.numToSkip.value
- endcase
- endif
- form.Close()
-
- ENDCLASS
-
-
-
-
-
-
-
-